package cn.phecda.boot.common.sensitive;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.*;

/**
 * <p> 脱敏注解 </p>
 *
 * @author : wanpinwei
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@JacksonAnnotationsInside
@JsonSerialize(using = SensitiveJacksonSerializer.class)
public @interface Sensitive {
    SensitiveStrategy value();
}
